<%@ Page Language="C#" MasterPageFile="~/MasterPage/BaseLine.Master" AutoEventWireup="true"
  Codebehind="ApprovedPage.aspx.cs" Inherits="WebRobot.Pages.ApprovedPage" Title="::web Robot:Approved Transaction::" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dxm" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <script type="text/javascript">
      function gvViewTran_SelectionChanged(s,e) {
      
          document.getElementById("selCount").innerHTML=gvViewTran.GetSelectedRowCount();
      }
      
      function ShowCommandWindow() {
          pupCommand.Show();
      }
      
       function HideCommandWindow() {
          pupCommand.Hide();
      }
       
       jQuery(document).ready(function(){
      jQuery('#aMenuApproved').attr('class', 'active');
    });
  </script>

  <dxpc:ASPxPopupControl ID="pupCommand" ClientInstanceName="pupCommand" runat="server"
    CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" HeaderText="Command"
    ImageFolder="~/App_Themes/Aqua/{0}/" Modal="true" PopupHorizontalAlign="WindowCenter"
    PopupVerticalAlign="WindowCenter" ShowOnPageLoad="false" AllowDragging="True" EnableAnimation="False"
    EnableViewState="False">
    <ContentCollection>
      <dxpc:PopupControlContentControl runat="server">
        <div>
          <dxe:ASPxTextBox ID="txtCommand" runat="server" Width="170px" MaxLength="128">
          </dxe:ASPxTextBox>
        </div>
        <div style="margin: 15px 0 0 30px">
          <dxe:ASPxButton ID="btnOk" runat="server" Text="OK" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
            CssPostfix="Aqua" OnClick="btnOk_Click" ClientSideEvents-Click="HideCommandWindow">
          </dxe:ASPxButton>
          <div style="margin: -25px 0 0 70px">
            <dxe:ASPxButton ID="btnCancel" runat="server" Text="Cancel" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
              CssPostfix="Aqua" ClientSideEvents-Click="HideCommandWindow">
            </dxe:ASPxButton>
          </div>
        </div>
      </dxpc:PopupControlContentControl>
    </ContentCollection>
    <ContentStyle VerticalAlign="Top">
    </ContentStyle>
    <SizeGripImage Height="12px" Width="12px" />
    <CloseButtonImage Height="16px" Width="17px" />
  </dxpc:ASPxPopupControl>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
  <div class="heading">
    Submitted Transaction
  </div>
  <div style="margin: 20px 0 0 0">
    <span id="lbStatus" runat="server"></span>
  </div>
  <div style="float: left; margin: 10px 0 0 0">
    <dxe:ASPxButton ID="btnCheckAll" runat="server" Text="Check All" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" Width="81px" OnClick="btnCheckAll_Click">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 10px 0 0 10px">
    <dxe:ASPxButton ID="btnUnCheckALL" runat="server" Text="UnCheck All" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" Width="91px" OnClick="btnUnCheckALL_Click">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 10px 0 0 10px;">
    <dxe:ASPxButton ID="btnApproved" runat="server" Text="Approved" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" BackColor="White"
      OnClick="btnApproved_Click" ClientSideEvents-Init="gvViewTran_SelectionChanged">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 10px 0 0 10px;">
    <dxe:ASPxButton ID="btnReject" runat="server" Text="Reject" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" BackColor="White"
      ClientSideEvents-Click="ShowCommandWindow">
    </dxe:ASPxButton>
  </div>
  <table>
    <tr>
      <td align="center" colspan="2" style="width: 825px">
        <dxwgv:ASPxGridView ID="gvViewTran" ClientInstanceName="gvViewTran" runat="server"
          AutoGenerateColumns="False" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua"
          Settings-ShowHorizontalScrollBar="true" Width="825px" KeyFieldName="ID" SettingsEditing-PopupEditFormModal="true"
          OnHtmlRowPrepared="gvViewTran_HtmlRowPrepared">
          <Styles CssPostfix="Aqua" CssFilePath="~/App_Themes/Aqua/{0}/styles.css">
            <AlternatingRow Enabled="False" BackColor="LightBlue">
            </AlternatingRow>
            <SelectedRow BackColor="#E0E0E0">
            </SelectedRow>
          </Styles>
          <SettingsLoadingPanel Text=""></SettingsLoadingPanel>
          <SettingsPager PageSize="20">
            <AllButton>
              <Image Height="19px" Width="27px"></Image>
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px"></Image>
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px"></Image>
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px"></Image>
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px"></Image>
            </PrevPageButton>
          </SettingsPager>
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png">
            </CollapsedButton>
            <ExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png">
            </ExpandedButton>
            <DetailCollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png">
            </DetailCollapsedButton>
            <DetailExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png">
            </DetailExpandedButton>
            <HeaderFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png">
            </HeaderFilter>
            <HeaderActiveFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png">
            </HeaderActiveFilter>
            <HeaderSortDown Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png">
            </HeaderSortDown>
            <HeaderSortUp Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png">
            </HeaderSortUp>
            <FilterRowButton Height="13px" Width="13px"></FilterRowButton>
            <WindowResizer Height="13px" Width="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png">
            </WindowResizer>
          </Images>
          <Columns>
            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Name="Check">
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="ID" Name="id" Visible="False" VisibleIndex="0">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn FieldName="ValueDate" Name="valueDate" Caption="Value Date"
              VisibleIndex="1">
              <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
              </PropertiesDateEdit>
              <EditFormCaptionStyle HorizontalAlign="Left">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataDateColumn Caption="Created Date" FieldName="CreatedDate" Name="CreatedDate"
              VisibleIndex="2">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyCurrency" Name="buyCCY" Caption="Buy Currency"
              VisibleIndex="3">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyAmount" Name="buyAmount" Caption="Buy Amount"
              VisibleIndex="4">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CusRate" Name="customerRate" Caption="Customer Rate"
              VisibleIndex="5">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellCurrency" Name="sellCurrency" Caption="Sell Currency"
              VisibleIndex="6">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellAmount" Name="sellAmount" Caption="Sell Amount"
              VisibleIndex="7">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CreatedBy" Name="createdBy" Caption="Created By"
              VisibleIndex="8">
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule USD &gt; 20k" FieldName="Rule2" Name="Rule2"
              VisibleIndex="12" ReadOnly="True">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule New Currency" FieldName="Rule3" Name="Rule3"
              VisibleIndex="11" ReadOnly="True">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule Floor&amp;Ceiling USN-VND" FieldName="Rule4"
              Name="Rule4" VisibleIndex="10" ReadOnly="True">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule Internal &amp; Board Rate" FieldName="Rule5"
              Name="Rule5" VisibleIndex="9" ReadOnly="True">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
          </Columns>
          <SettingsEditing PopupEditFormWidth="600px" PopupEditFormModal="True" />
          <Settings ShowFilterRow="True" ShowHorizontalScrollBar="True"></Settings>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png">
            </CalendarFastNavPrevYear>
            <CalendarFastNavNextYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png">
            </CalendarFastNavNextYear>
            <DropDownEditDropDown UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" Height="7px"
              Width="9px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"></DropDownEditDropDown>
            <SpinEditIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Height="6px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png">
            </SpinEditIncrement>
            <SpinEditDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Height="7px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png">
            </SpinEditDecrement>
            <SpinEditLargeIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"></SpinEditLargeIncrement>
            <SpinEditLargeDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"></SpinEditLargeDecrement>
          </ImagesEditors>
          <ClientSideEvents SelectionChanged="gvViewTran_SelectionChanged" />
        </dxwgv:ASPxGridView>
      </td>
    </tr>
  </table>
  <div style="float: left; margin: 0 0 0 0">
    <span>Selection row No: </span><span id="selCount" style="color: Maroon"></span>
  </div>
</asp:Content>
